package com.whut.manage.service;

import com.alibaba.fastjson.JSONObject;
import com.aliyun.hitsdb.client.HiTSDB;
import com.whut.manage.utils.TSDBUtil;

import javax.sound.midi.Soundbank;
import java.util.Date;

/**
 * @author WZH
 * @create 2021-06-09 17:08
 * @desc 用于来分析历史数据信息
 **/
public class HistoryDataAnalysisService {

    /**
     *用于提供每小时的产能信息
     * @param startTime_date
     * @param endTime_date
     * @param deviceName
     * @return {{@link JSONObject}}
     * @author WZH
     * @date 2021/6/9 17:25
     */
    public static JSONObject histroyProducitonDataAnalysis(Date startTime_date, Date endTime_date, String deviceName) {
        HiTSDB hiTSDB = TSDBUtil.getHiTSDB();
        System.out.println(startTime_date);
        int day = startTime_date.getDay();
        System.out.println(day);

        int hours = startTime_date.getHours();
        System.out.println(hours);

        return null;
    }
}
